package com.aaa.controller.logMonitor;

import com.aaa.controller.BaseController;
import com.aaa.entity.PageSortEntity;
import com.aaa.entity.Result;
import com.aaa.entity.logMonitor.Log;
import com.aaa.entity.systemmanage.Dept;
import com.aaa.service.logMonitor.LogService;
import com.github.pagehelper.Page;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;

/**
 * (Log)表控制层
 *
 * @author makejava
 * @since 2022-09-02 14:59:10
 */
@RestController
@RequestMapping("logMonitor")
public class LogController extends BaseController {
    /**
     * 服务对象
     */
    @Resource
    private LogService logService;

    @RequestMapping(method = RequestMethod.GET,value = "/queryAll.do")
    public Result queryAll(PageSortEntity pageSortEntity, Log log){
        Page pageResult = logService.queryAll(pageSortEntity, log);
        return success(pageResult.getResult(),pageResult.getTotal());
    }

}

